refactor(client): Use constants for default display width and height values#1465
Conversation
| #define MIN_DISPLAY_BIT_DEPTH 16 | ||
| #define DEFAULT_DISPLAY_BIT_DEPTH 32 | ||
| #define DEFAULT_DISPLAY_WIDTH 800 // The standard resolution this game was designed for | ||
| #define DEFAULT_DISPLAY_HEIGHT 600 // The standard resolution this game was designed for |
There was a problem hiding this comment.
Wouldn't it be better to make these static const or CONSTEXPR?
There was a problem hiding this comment.
After VC6, yes. With VC6 this ideally is an enum value or macro.
|
Missing the change for W3DHorizontalSlider.cpp line 232: GlobalLanguage.cpp i think this is also meant to relate to default width too W3DMainMenu.cpp |
|
Fixed. |
Mauller
left a comment
There was a problem hiding this comment.
Looks good to me from what i could find.
|
Replicated in Generals with conflicts. |
This change moves the default resolution constants to GameDefines.h and uses them at places.
TODO